//
//  BoardViewController.h
//  CheckersGame
//
//  Created by  on 11-11-23.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BoardView.h"
#import "Piece.h"

@interface BoardViewController : UIViewController {
    UIView* toplevelView;
    BoardView* boardView;
    NSArray* pieceArray; 
    CheckersGameState* gameState;
    Piece* selectedPiece;
    NSTimer* timer;
    
}

@property (strong, retain, nonatomic) IBOutlet UIView* toplevelView;
@property (strong, retain, nonatomic) IBOutlet BoardView* boardView;

// Methods for game board controller
- (void)newGame: (CheckersGameState*) gs;
- (void)pause;
- (void)suspend;
- (void)move;
- (IBAction)quit:(id)sender;
- (void)roll;

-(IBAction)didSelectUndo: (id)sender;

-(IBAction)didSelectPause: (id)sender;

-(IBAction)didSelectPiece: (id)sender;
-(IBAction)didClickBoard : (id)sender;

@end
